﻿using UnityEngine;
using UnityEditor;
using System.Collections.Generic;

public class GameUtils
{
    public static void ClearAllMonster(IStage stage)
    {
        List<MonsterObject> monsters = stage.GetObjs<MonsterObject>();

        foreach (MonsterObject monsterObj in monsters)
        {
            monsterObj.Destroy();
        }
    }

    public static void ClearAllWorldObjs(IStage stage)
    {
        List<IWorldObject> worldObjs = stage.GetObjs<IWorldObject>();

        foreach (IWorldObject worldObj in worldObjs)
        {
            worldObj.Destroy();
        }
    }
}